import request from '@/utils/request'

// 查询合集步骤列表
export function listStep(query) {
  return request({
    url: '/note/step/list',
    method: 'get',
    params: query
  })
}

// 查询合集步骤详细
export function getStep(id) {
  return request({
    url: '/note/step/' + id,
    method: 'get'
  })
}// 查询合集步骤详细
export function getNotQuoteChapter(compilationId) {
  return request({
    url: '/note/step/getNotQuoteChapter/' + compilationId,
    method: 'get'
  })
}

// 新增合集步骤
export function addStep(data) {
  return request({
    url: '/note/step',
    method: 'post',
    data: data
  })
}

// 修改合集步骤
export function updateStep(data) {
  return request({
    url: '/note/step',
    method: 'put',
    data: data
  })
}

// 删除合集步骤
export function delStep(id) {
  return request({
    url: '/compilation/step/' + id,
    method: 'delete'
  })
}
